package com.itheima.dao;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    List<Order> findByMemberId(Integer id);


    List<Order> findByCondition(Order order);

    void add(Order order);

    Order findById(Integer id);

    void changeStatus(Map<String, Object> map);

    Map findById4Detail(Integer id);

    Integer findOrderDateValueSubscribe(String day);

    Integer findOrderDateValueUnsubscribe(String day);

    Map findById4DetailHealth(@Param("id") int id, @Param("setmealId") int setmealId);

    Map findIAndPE(int orderId);

}
